{extend name="default/base/base_seller" /}
{block name="seller_main"}

 <form method="get">
            <table class="search-form">
                <tr>
                    <td>&nbsp;</td>
                    <th>{$Think.lang.cost_consumption_content}</th>
                    <td class="w160"><input type="text" class="text w150" name="storecost_remark" value="{$Request.param.storecost_remark}" /></td>
                    <th>{$Think.lang.cost_time}</th>
                    <td class="w240">
                        <input name="add_time_from" id="add_time_from" type="text" class="text w70" value="{$Request.param.add_time_from}" /><label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
                        &nbsp;&#8211;&nbsp;
                        <input name="add_time_to" id="add_time_to" type="text" class="text w70" value="{$Request.param.add_time_to}" /><label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
                    </td>     
                    <td class="w70 tc">
                        <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
                    </td>
                </tr>
            </table>
        </form>
        
        <table class="dssc-default-table">
            <thead>
                <tr>
                    <th class="w120">{$Think.lang.cost_consumption_amount}</th>
                    <th class="tl">{$Think.lang.cost_consumption_content}</th>
                    <th class="w80">{$Think.lang.cost_status}</th>
                    <th class="w130">{$Think.lang.cost_time}</th>
                </tr>
            </thead>
            <tbody>
                {notempty name="cost_list"}
                {foreach name="cost_list" item="value" key="key" }
                <tr class="bd-line">
                    <td>{$value.storecost_price}</td>
                    <td class="tl">{$value.storecost_remark}</td>
                    <td>{if $value.storecost_state}{$Think.lang.cost_settled}{else/}{$Think.lang.cost_not_settled}{/if}</td>
                    <td>{$value.storecost_time|date="Y-m-d H:s"}</td>
                </tr>
                {/foreach}
                {else /}
                <tr>
                    <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
                </tr>
                {/notempty}
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
                </tr>
            </tfoot>
        </table>


        
        <script type="text/javascript">
            $(document).ready(function () {
                $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
                $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
            });
        </script>

{/block}